package org.linlinjava.litemall.admin.vo.order_manage;

import io.swagger.models.auth.In;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author wj
 * @date 2021/5/31 18:22
 */
public class ReturnGoodsVo {


    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空")
    private String orderSn;

    /**
     * 退款类型
     */
    @NotNull(message = "退款类型不能为空")
    private Integer returnType;


    private BigDecimal refundAmount;

    /**
     * 订单商品表id
     */
    @Size(min = 1,message = "退款商品不能小于一个")
        private List<Integer> orderGoodsId;

    /**
     * 退款理由
     */
    private String reason;

    /**
     * 退货方式
     */
    @NotNull(message = "退货方式不能为空")
    private Integer getGoodsStyle;

    /**
     * 配送员id
     */
    private Integer deliveryManId;

    /**
     * 物流信息
     */
    private String logisticsInfo;

    public ReturnGoodsVo() {
    }

    public ReturnGoodsVo(String orderSn, Integer returnType, BigDecimal refundAmount, List<Integer> orderGoodsId, String reason, Integer getGoodsStyle, Integer deliveryManId, String logisticsInfo) {
        this.orderSn = orderSn;
        this.returnType = returnType;
        this.refundAmount = refundAmount;
        this.orderGoodsId = orderGoodsId;
        this.reason = reason;
        this.getGoodsStyle = getGoodsStyle;
        this.deliveryManId = deliveryManId;
        this.logisticsInfo = logisticsInfo;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getReturnType() {
        return returnType;
    }

    public void setReturnType(Integer returnType) {
        this.returnType = returnType;
    }

    public List<Integer> getOrderGoodsId() {
        return orderGoodsId;
    }

    public void setOrderGoodsId(List<Integer> orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getGetGoodsStyle() {
        return getGoodsStyle;
    }

    public void setGetGoodsStyle(Integer getGoodsStyle) {
        this.getGoodsStyle = getGoodsStyle;
    }

    public Integer getDeliveryManId() {
        return deliveryManId;
    }

    public void setDeliveryManId(Integer deliveryManId) {
        this.deliveryManId = deliveryManId;
    }

    public String getLogisticsInfo() {
        return logisticsInfo;
    }

    public void setLogisticsInfo(String logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }
}
